package com.hunter.jerrymouse.response;

import java.io.IOException;

/**
 * Created by hunter
 * <p>
 * 响应接口类
 */
public interface Response {

    void setContentType(String contentType);

    void setContentLength(int contentLength);

    void addHeader(String headerName, String headerValue);

    void write(byte[] bytes) throws IOException;

    void write(byte[] bytes, int begin, int end) throws IOException;

    void flush() throws IOException;

    void close() throws IOException;

    /*
     * TODO
     *
     * COOKIE
     *
     * ...
     */
}
